﻿using Microsoft.Extensions.Hosting;
using MoolinkHsmsServer;
using SuperSocket;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace superSocketApi
{
	public class HsmsMsgRepClass
	{
		public HsmsMessage _p;
		public IAppSession _s;
	}
	public static class GlobalSystem
	{
		public const int RedisDB_YaXinDevice = 18;
		public static IHost theHost;
		//public static IServer server1= default(IServer);
		//public static IServer server2= default(IServer);

		public static Queue<HsmsMsgRepClass> msgQueue = new Queue<HsmsMsgRepClass>();
		public static Queue<HsmsMsgRepClass> fileQueue = new Queue<HsmsMsgRepClass>();
		public static Queue<HsmsMessage> taskQueue = new Queue<HsmsMessage>();

		public static Dictionary<ushort, string> deviceIdToSessionId = new Dictionary<ushort, string>();
		public static Dictionary<ushort, string> deviceIdSendFileName = new Dictionary<ushort, string>();


	}
}
